65. Araxis Merge File Comparison Report

Produced by Araxis Merge on Fri Dec 13 16:40:55 2019 UTC. See www.araxis.com for information about Merge. This report uses XHTML and CSS2, and is best viewed with a reasonably standards compliant browser such as the latest version of Firefox or Internet Explorer. For optimum results when printing this report, use landscape orientation and enable printing of background images and colours in your browser.

65.1 Files compared

# Location File Last Modified
1 Porto v.3.2.1\Theme Files\Magento 1.x\Porto Theme\app\design\frontend\smartwave\porto\template\filterproducts grid.phtml Thu Sep 19 09:12:52 2019 UTC
2 Porto v.3.2.2\Theme Files\Magento 1.x\Porto Theme\app\design\frontend\smartwave\porto\template\filterproducts grid.phtml Fri Dec 13 13:09:02 2019 UTC

65.2 Comparison summary

Description Between
Files 1 and 2
Text Blocks Lines
Unchanged 4 642
Changed 3 6
Inserted 0 0
Removed 0 0

65.3 Comparison options

Whitespace All differences in whitespace within lines are ignored
Character case Differences in character case are significant
Line endings Differences in line endings (CR and LF characters) are ignored
CR/LF characters Not shown in the comparison detail

65.4 Active regular expressions

No regular expressions were active.

65.5 Comparison detail

1   <?php   1   <?php
2       $_prod uctCollect ion=$this- >getLoaded ProductCol lection();   2       $_prod uctCollect ion=$this- >getLoaded ProductCol lection();
3       $_help er = $this ->helper(' catalog/ou tput');   3       $_help er = $this ->helper(' catalog/ou tput');
4       $_imag e_helper =  $this->he lper('cata log/image' );   4       $_imag e_helper =  $this->he lper('cata log/image' );
5       $store  = Mage::a pp()->getS tore();   5       $store  = Mage::a pp()->getS tore();
6       $code   = $store- >getCode() ;   6       $code   = $store- >getCode() ;
7       $aspec t_ratio =  $this->get Data("aspe ct_ratio") ;   7       $aspec t_ratio =  $this->get Data("aspe ct_ratio") ;
8          8       
9       $lazyl oad = Mage ::getStore Config("po rto_settin gs/optimiz ation/lazy load",$cod e);   9       $lazyl oad = Mage ::getStore Config("po rto_settin gs/optimiz ation/lazy load",$cod e);
10     10  
11       if($as pect_ratio  == null)  {   11       if($as pect_ratio  == null)  {
12           $a spect_rati o = Mage:: getStoreCo nfig("port o_settings /category/ aspect_rat io",$code) ;   12           $a spect_rati o = Mage:: getStoreCo nfig("port o_settings /category/ aspect_rat io",$code) ;
13       }   13       }
14       $ratio _width = $ this->getD ata("image _width");   14       $ratio _width = $ this->getD ata("image _width");
15       if(!$r atio_width ) {   15       if(!$r atio_width ) {
16           $r atio_width  = Mage::g etStoreCon fig("porto _settings/ category/r atio_width ",$code);   16           $r atio_width  = Mage::g etStoreCon fig("porto _settings/ category/r atio_width ",$code);
17       }   17       }
18       if(!$r atio_width )   18       if(!$r atio_width )
19           $r atio_width  = 300;   19           $r atio_width  = 300;
20       $ratio _height =  $this->get Data("imag e_height") ;   20       $ratio _height =  $this->get Data("imag e_height") ;
21       if($as pect_ratio ) {   21       if($as pect_ratio ) {
22           $r atio_heigh t = $ratio _width;   22           $r atio_heigh t = $ratio _width;
23       }   23       }
24       if(!$r atio_heigh t) {   24       if(!$r atio_heigh t) {
25           $r atio_heigh t = Mage:: getStoreCo nfig("port o_settings /category/ ratio_heig ht",$code) ;   25           $r atio_heigh t = Mage:: getStoreCo nfig("port o_settings /category/ ratio_heig ht",$code) ;
26       }   26       }
27       if(!$r atio_heigh t)   27       if(!$r atio_heigh t)
28           $r atio_heigh t = 300;   28           $r atio_heigh t = 300;
29     29  
30       $produ ct_type =  $this->get Data("prod uct_type") ;   30       $produ ct_type =  $this->get Data("prod uct_type") ;
31       if($pr oduct_type  == null)  {   31       if($pr oduct_type  == null)  {
32           $p roduct_typ e = Mage:: getStoreCo nfig("port o_settings /category_ grid/produ ct_type",$ code);   32           $p roduct_typ e = Mage:: getStoreCo nfig("port o_settings /category_ grid/produ ct_type",$ code);
33       }   33       }
34       if($pr oduct_type  == null)  {   34       if($pr oduct_type  == null)  {
35           $p roduct_typ e = 1;   35           $p roduct_typ e = 1;
36       }   36       }
37   ?>   37   ?>
38   <?php if(! $_productC ollection- >count()):  ?>   38   <?php if(! $_productC ollection- >count()):  ?>
39   <p class=" note-msg"> <?php echo  $this->__ ('There ar e no produ cts matchi ng the sel ection.')  ?></p>   39   <p class=" note-msg"> <?php echo  $this->__ ('There ar e no produ cts matchi ng the sel ection.')  ?></p>
40   <?php else : ?>   40   <?php else : ?>
41   <div class ="category -products" >   41   <div class ="category -products" >
42       <?php  // Grid Mo de ?>   42       <?php  // Grid Mo de ?>
43     43  
44       <?php  $_collecti onSize = $ _productCo llection-> count() ?>   44       <?php  $_collecti onSize = $ _productCo llection-> count() ?>
45       <?php   45       <?php
46           $_ columnCoun t = $this- >getColumn Count();   46           $_ columnCoun t = $this- >getColumn Count();
47           if (!$_column Count)   47           if (!$_column Count)
48                $_column Count = 4;   48                $_column Count = 4;
49       ?>   49       ?>
50        <ul   class="pro ducts-grid   columns<?p hp   echo   $_columnCo unt;   ?>   <?php   if($produc t_type   ==   2):   ?>no-paddi ng   divider-li ne<?php   endif;   ?>   <?php   if($produc t_type   ==   5   ||   $product_t ype   ==   6   ||   $product_t ype   ==   7   ||   $product_t ype   ==   8
):   ?>no-paddi ng<?php   endif;   ?>   <?php   if($produc t_type   ==   6):   ?>divider- line<?php   endif;   ?>">
  50        <ul   class="pro ducts-grid   columns<?p hp   echo   $_columnCo unt;   ?>   <?php   if($produc t_type   ==   2):   ?>no-paddi ng   divider-li ne<?php   endif;   ?>   <?php   if($produc t_type   ==   5   ||   $product_t ype   ==   6   ||   $product_t ype   ==   7   ||   $product_t ype   ==   8   ||   $product_t ype   ==   11 ):   ?>no-paddi ng<?php   endif;   ?>   <?php   if($produc t_type   ==   6):   ?>divider- line<?php   endif;   ?>">
51       <?php  $i=0; fore ach ($_pro ductCollec tion as $_ product):  ?>   51       <?php  $i=0; fore ach ($_pro ductCollec tion as $_ product):  ?>
52       <?php  $product =  $_product ; ?>   52       <?php  $product =  $_product ; ?>
53           <? php   53           <? php
54                    $rnd _str = "";   54                    $rnd _str = "";
55                    $bas e_str = "0 123456789a bcdefghijk lmnopqrstu vwxyz";   55                    $bas e_str = "0 123456789a bcdefghijk lmnopqrstu vwxyz";
56                    $su  = strlen($ base_str)  - 1;   56                    $su  = strlen($ base_str)  - 1;
57                    $rnd _str = sub str($base_ str, rand( 0,$su), 1) .substr($b ase_str, r and(0,$su) , 1).subst r($base_st r, rand(0, $su), 1);   57                    $rnd _str = sub str($base_ str, rand( 0,$su), 1) .substr($b ase_str, r and(0,$su) , 1).subst r($base_st r, rand(0, $su), 1);
58           ?>   58           ?>
59                <li clas s="item">< div class= "item-area  type<?php  echo $pro duct_type;  ?>">   59                <li clas s="item">< div class= "item-area  type<?php  echo $pro duct_type;  ?>">
60                    <div  class="pr oduct-imag e-area">   60                    <div  class="pr oduct-imag e-area">
61                         <div class ="loader-c ontainer">   61                         <div class ="loader-c ontainer">
62                             <div c lass="load er">   62                             <div c lass="load er">
63                                 <i  class="aj ax-loader  medium ani mate-spin" ></i>   63                                 <i  class="aj ax-loader  medium ani mate-spin" ></i>
64                             </div>   64                             </div>
65                         </div>   65                         </div>
66                         <?php   66                         <?php
67                         if(   Mage::getS toreConfig ("quickvie w/general/ enableview ",   $code)  
){
  67                         if(   Mage::getS toreConfig ("quickvie w/general/ enableview ",   $code)   &&   $product_t ype   !=   11 ){
68                             $base_ url = $thi s->getUrl( );   68                             $base_ url = $thi s->getUrl( );
69                             if(str pos($base_ url,'?')!= =false)   69                             if(str pos($base_ url,'?')!= =false)
70                                 $b ase_url =  explode("? ",$this->g etUrl());   70                                 $b ase_url =  explode("? ",$this->g etUrl());
71                             if(is_ array($bas e_url))   71                             if(is_ array($bas e_url))
72                                 $b ase_url =  $base_url[ 0];   72                                 $b ase_url =  $base_url[ 0];
73                             $base_ url .= "qu ickview/in dex/view/" ;   73                             $base_ url .= "qu ickview/in dex/view/" ;
74                             $quick view_url =  $base_url ."id/".$_p roduct->ge tId();   74                             $quick view_url =  $base_url ."id/".$_p roduct->ge tId();
75                             ?>   75                             ?>
76                             <a hre f="<?php e cho $quick view_url;  ?>" class= "quickview -icon"><i  class="ico n-export"> </i><span> <?php echo  $this->__ ("Quick Vi ew"); ?></ span></a>   76                             <a hre f="<?php e cho $quick view_url;  ?>" class= "quickview -icon"><i  class="ico n-export"> </i><span> <?php echo  $this->__ ("Quick Vi ew"); ?></ span></a>
77                         <?php   77                         <?php
78                         }   78                         }
79                         ?>   79                         ?>
80                         <a href="< ?php echo  $_product- >getProduc tUrl() ?>"  title="<? php echo $ this->stri pTags($thi s->getImag eLabel($_p roduct, 's mall_image '), null,  true) ?>"  class="pro duct-image ">   80                         <a href="< ?php echo  $_product- >getProduc tUrl() ?>"  title="<? php echo $ this->stri pTags($thi s->getImag eLabel($_p roduct, 's mall_image '), null,  true) ?>"  class="pro duct-image ">
81                         <?php   81                         <?php
82                             if(Mag e::getStor eConfig("p orto_setti ngs/catego ry/alterna tive_image ", $code)) {   82                             if(Mag e::getStor eConfig("p orto_setti ngs/catego ry/alterna tive_image ", $code)) {
83                         ?>   83                         ?>
84                             <img c lass="defa ultImage < ?php if(!$ lazyload):  ?>porto-l azyload<?p hp endif;? >" <?php i f(!$lazylo ad): ?>dat a-<?php en dif; ?>src ="<?php if ($aspect_r atio):?><? php echo $ _image_hel per->init( $_product,  'small_im age')->con strainOnly (FALSE)->k eepAspectR atio(TRUE) ->keepFram e(FALSE)-> resize($ra tio_width) ;?><?php e lse: ?><?p hp echo $_ image_help er->init($ _product,  'small_ima ge')->resi ze($ratio_ width,$rat io_height) ; ?><?php  endif; ?>"  width="<? php echo $ ratio_widt h; ?>" hei ght="<?php  echo $rat io_height;  ?>"/>   84                             <img c lass="defa ultImage < ?php if(!$ lazyload):  ?>porto-l azyload<?p hp endif;? >" <?php i f(!$lazylo ad): ?>dat a-<?php en dif; ?>src ="<?php if ($aspect_r atio):?><? php echo $ _image_hel per->init( $_product,  'small_im age')->con strainOnly (FALSE)->k eepAspectR atio(TRUE) ->keepFram e(FALSE)-> resize($ra tio_width) ;?><?php e lse: ?><?p hp echo $_ image_help er->init($ _product,  'small_ima ge')->resi ze($ratio_ width,$rat io_height) ; ?><?php  endif; ?>"  width="<? php echo $ ratio_widt h; ?>" hei ght="<?php  echo $rat io_height;  ?>"/>
85                             <img c lass="hove rImage" sr c="<?php i f($aspect_ ratio):?>< ?php echo  $_image_he lper->init ($_product , 'thumbna il')->cons trainOnly( FALSE)->ke epAspectRa tio(TRUE)- >keepFrame (FALSE)->r esize($rat io_width); ?><?php el se: ?><?ph p echo $_i mage_helpe r->init($_ product, ' thumbnail' )->resize( $ratio_wid th,$ratio_ height); ? ><?php end if; ?>" wi dth="<?php  echo $rat io_width;  ?>" <?php  if(!$aspec t_ratio):? >height="< ?php echo  $ratio_hei ght; ?>"<? php endif;  ?> alt="< ?php echo  $this->str ipTags($th is->getIma geLabel($_ product, ' thumbnail' ), null, t rue) ?>"/>   85                             <img c lass="hove rImage" sr c="<?php i f($aspect_ ratio):?>< ?php echo  $_image_he lper->init ($_product , 'thumbna il')->cons trainOnly( FALSE)->ke epAspectRa tio(TRUE)- >keepFrame (FALSE)->r esize($rat io_width); ?><?php el se: ?><?ph p echo $_i mage_helpe r->init($_ product, ' thumbnail' )->resize( $ratio_wid th,$ratio_ height); ? ><?php end if; ?>" wi dth="<?php  echo $rat io_width;  ?>" <?php  if(!$aspec t_ratio):? >height="< ?php echo  $ratio_hei ght; ?>"<? php endif;  ?> alt="< ?php echo  $this->str ipTags($th is->getIma geLabel($_ product, ' thumbnail' ), null, t rue) ?>"/>
86                         <?php   86                         <?php
87                             } else  {   87                             } else  {
88                         ?>   88                         ?>
89                             <img < ?php if(!$ lazyload):  ?>class=" porto-lazy load" data -<?php end if; ?>src= "<?php if( $aspect_ra tio):?><?p hp echo $_ image_help er->init($ _product,  'small_ima ge')->cons trainOnly( FALSE)->ke epAspectRa tio(TRUE)- >keepFrame (FALSE)->r esize($rat io_width); ?><?php el se: ?><?ph p echo $_i mage_helpe r->init($_ product, ' small_imag e')->resiz e($ratio_w idth,$rati o_height);  ?><?php e ndif; ?>"  width="<?p hp echo $r atio_width ; ?>" heig ht="<?php  echo $rati o_height;  ?>"/>   89                             <img < ?php if(!$ lazyload):  ?>class=" porto-lazy load" data -<?php end if; ?>src= "<?php if( $aspect_ra tio):?><?p hp echo $_ image_help er->init($ _product,  'small_ima ge')->cons trainOnly( FALSE)->ke epAspectRa tio(TRUE)- >keepFrame (FALSE)->r esize($rat io_width); ?><?php el se: ?><?ph p echo $_i mage_helpe r->init($_ product, ' small_imag e')->resiz e($ratio_w idth,$rati o_height);  ?><?php e ndif; ?>"  width="<?p hp echo $r atio_width ; ?>" heig ht="<?php  echo $rati o_height;  ?>"/>
90                         <?php   90                         <?php
91                             }   91                             }
92                         ?>   92                         ?>
93                         <?php if ( Mage::help er("core") ->isModule Enabled("M agegiant_D ailydeal") ): ?>   93                         <?php if ( Mage::help er("core") ->isModule Enabled("M agegiant_D ailydeal") ): ?>
94                         <?php   94                         <?php
95                         if(Mage::g etStoreCon fig("daily deal/gener al/enable" , $code)){   95                         if(Mage::g etStoreCon fig("daily deal/gener al/enable" , $code)){
96                         $deal = Ma ge::getMod el('dailyd eal/dailyd eal')->get DealByProd uct($_prod uct->getId ());   96                         $deal = Ma ge::getMod el('dailyd eal/dailyd eal')->get DealByProd uct($_prod uct->getId ());
97     97  
98                         if ($deal  && ($deal- >getQuanti ty() - $de al->getSol d() > 0))  {   98                         if ($deal  && ($deal- >getQuanti ty() - $de al->getSol d() > 0))  {
99                             ?>   99                             ?>
100                                 <? php $now =  Mage::get Model('cor e/date')-> timestamp( time()) ?>   100                                 <? php $now =  Mage::get Model('cor e/date')-> timestamp( time()) ?>
101                                 <? php $endTi me = Mage: :getModel( 'core/date ')->timest amp(strtot ime($deal- >getCloseT ime())); ? >   101                                 <? php $endTi me = Mage: :getModel( 'core/date ')->timest amp(strtot ime($deal- >getCloseT ime())); ? >
102                                 <d iv class=" deal-label ">   102                                 <d iv class=" deal-label ">
103                                      <i class ="icon-clo ck"></i>   103                                      <i class ="icon-clo ck"></i>
104                                 </ div>   104                                 </ div>
105                                 <d iv class=" bottom-pro duct-daily deal botto m-home-dai lydeal">   105                                 <d iv class=" bottom-pro duct-daily deal botto m-home-dai lydeal">
106                                      <ul clas s="time-le ft">   106                                      <ul clas s="time-le ft">
107                                          <spa n><?php ec ho $this-> __('Ends I n:'); ?></ span>   107                                          <spa n><?php ec ho $this-> __('Ends I n:'); ?></ span>
108                                          <div  class="ti meleft tim eleft_<?ph p echo $_p roduct->ge tId() ?>">  </div>   108                                          <div  class="ti meleft tim eleft_<?ph p echo $_p roduct->ge tId() ?>">  </div>
109                                      </ul>   109                                      </ul>
110                                 </ div>   110                                 </ div>
111                             <scrip t type="te xt/javascr ipt">   111                             <scrip t type="te xt/javascr ipt">
112                                 // <![CDATA[   112                                 // <![CDATA[
113                                 i+ +;   113                                 i+ +;
114                                 da ilydealTim eCountersC ategory[i]  = new Dai lydealTime Counter('< ?php echo  $now ?>',  '<?php ech o $endTime  ?>', '<?p hp echo $d eal->getId () ?>');   114                                 da ilydealTim eCountersC ategory[i]  = new Dai lydealTime Counter('< ?php echo  $now ?>',  '<?php ech o $endTime  ?>', '<?p hp echo $d eal->getId () ?>');
115                                 da ilydealTim eCountersC ategory[i] .setTimele ft('timele ft_<?php e cho $_prod uct->getId () ?>');   115                                 da ilydealTim eCountersC ategory[i] .setTimele ft('timele ft_<?php e cho $_prod uct->getId () ?>');
116                                 // ]]>   116                                 // ]]>
117                                 </ script>   117                                 </ script>
118                         <?php   118                         <?php
119                         }   119                         }
120                         }   120                         }
121                         ?>   121                         ?>
122                         <?php endi f; ?>   122                         <?php endi f; ?>
123                         </a>   123                         </a>
124                         <?php    124                         <?php 
125                                125                             
126                             $sale_ label = fa lse;   126                             $sale_ label = fa lse;
127                                127                             
128                                128                             
129                             // Get  the Speci al Price   129                             // Get  the Speci al Price
130                             $speci alprice =  $product-> getFinalPr ice();   130                             $speci alprice =  $product-> getFinalPr ice();
131                             $orgpr ice = $pro duct->getP rice();   131                             $orgpr ice = $pro duct->getP rice();
132                             // Get  the Speci al Price F ROM date   132                             // Get  the Speci al Price F ROM date
133                             $now =  date("Y-m -d");   133                             $now =  date("Y-m -d");
134                             $speci alPriceFro mDate = su bstr($prod uct->getSp ecialFromD ate(),0,10 );   134                             $speci alPriceFro mDate = su bstr($prod uct->getSp ecialFromD ate(),0,10 );
135                             // Get  the Speci al Price T O date   135                             // Get  the Speci al Price T O date
136                             $speci alPriceToD ate = subs tr($produc t->getSpec ialToDate( ),0,10);   136                             $speci alPriceToD ate = subs tr($produc t->getSpec ialToDate( ),0,10);
137                             // Get  Current d ate   137                             // Get  Current d ate
138                             $today  =  time() ;   138                             $today  =  time() ;
139                             139                          
140                             if ($s pecialpric e<$orgpric e){   140                             if ($s pecialpric e<$orgpric e){
141                                 $s ave_percen t = 100-ro und(($spec ialprice/$ orgprice)* 100);   141                                 $s ave_percen t = 100-ro und(($spec ialprice/$ orgprice)* 100);
142                                 if  ($special PriceToDat e != '' ||  $specialP riceFromDa te != ''){   142                                 if  ($special PriceToDat e != '' ||  $specialP riceFromDa te != ''){
143                                 if  (($specia lPriceToDa te != '' & & $special PriceFromD ate != ''  && $now>=$ specialPri ceFromDate  && $now<= $specialPr iceToDate)  || ($spec ialPriceTo Date == ''  && $now > =$specialP riceFromDa te) || ($s pecialPric eFromDate  == '' && $ now<=$spec ialPriceTo Date)){   143                                 if  (($specia lPriceToDa te != '' & & $special PriceFromD ate != ''  && $now>=$ specialPri ceFromDate  && $now<= $specialPr iceToDate)  || ($spec ialPriceTo Date == ''  && $now > =$specialP riceFromDa te) || ($s pecialPric eFromDate  == '' && $ now<=$spec ialPriceTo Date)){
144                                      if(Mage: :getStoreC onfig("por to_setting s/product_ label/sale ", $code)) {   144                                      if(Mage: :getStoreC onfig("por to_setting s/product_ label/sale ", $code)) {
145                                          $sal e_label =  true;   145                                          $sal e_label =  true;
146                         ?>   146                         ?>
147                                      <div cla ss="produc t-label" s tyle="righ t: 10px;"> <span clas s="sale-pr oduct-icon "><?php if (Mage::get StoreConfi g("porto_s ettings/pr oduct_labe l/sale_lab el_type",  $code)):?> <?php echo  "-".$save _percent." %"; ?><?ph p else: ?> <?php echo  Mage::get StoreConfi g("porto_s ettings/pr oduct_labe l/sale_lab el_text",  $code);?>< ?php endif ; ?></span ></div>   147                                      <div cla ss="produc t-label" s tyle="righ t: 10px;"> <span clas s="sale-pr oduct-icon "><?php if (Mage::get StoreConfi g("porto_s ettings/pr oduct_labe l/sale_lab el_type",  $code)):?> <?php echo  "-".$save _percent." %"; ?><?ph p else: ?> <?php echo  Mage::get StoreConfi g("porto_s ettings/pr oduct_labe l/sale_lab el_text",  $code);?>< ?php endif ; ?></span ></div>
148                         <?php           148                         <?php        
149                                      }   149                                      }
150                                 }   150                                 }
151                             }   151                             }
152                             }   152                             }
153                         ?>   153                         ?>
154                         <?php   154                         <?php
155                             $now =  date("Y-m -d");   155                             $now =  date("Y-m -d");
156                             $newsF rom= subst r($_produc t->getData ('news_fro m_date'),0 ,10);   156                             $newsF rom= subst r($_produc t->getData ('news_fro m_date'),0 ,10);
157                             $newsT o=  substr ($_product ->getData( 'news_to_d ate'),0,10 );   157                             $newsT o=  substr ($_product ->getData( 'news_to_d ate'),0,10 );
158                             if ($n ewsTo != ' ' || $news From != '' ){   158                             if ($n ewsTo != ' ' || $news From != '' ){
159                                 if  (($newsTo  != '' &&  $newsFrom  != '' && $ now>=$news From && $n ow<=$newsT o) || ($ne wsTo == ''  && $now > =$newsFrom ) || ($new sFrom == ' ' && $now< =$newsTo))   159                                 if  (($newsTo  != '' &&  $newsFrom  != '' && $ now>=$news From && $n ow<=$newsT o) || ($ne wsTo == ''  && $now > =$newsFrom ) || ($new sFrom == ' ' && $now< =$newsTo))
160                                 {   160                                 {
161                                      if(Mage: :getStoreC onfig("por to_setting s/product_ label/new" , $code)){   161                                      if(Mage: :getStoreC onfig("por to_setting s/product_ label/new" , $code)){
162                             ?>    162                             ?> 
163                                      <div cla ss="produc t-label" s tyle="righ t: 10px; < ?php echo  ($sale_lab el)?"top:  40px;":"";  ?>"><span  class="ne w-product- icon"><?ph p echo Mag e::getStor eConfig("p orto_setti ngs/produc t_label/ne w_label_te xt", $code );?></span ></div>   163                                      <div cla ss="produc t-label" s tyle="righ t: 10px; < ?php echo  ($sale_lab el)?"top:  40px;":"";  ?>"><span  class="ne w-product- icon"><?ph p echo Mag e::getStor eConfig("p orto_setti ngs/produc t_label/ne w_label_te xt", $code );?></span ></div>
164                             <?php    164                             <?php 
165                                      }   165                                      }
166                                 }   166                                 }
167                             }   167                             }
168                         ?>   168                         ?>
169                         <?php if($ product_ty pe == 3 ||  $product_ type == 5  || $produc t_type ==  6 || $prod uct_type = = 7 || $pr oduct_type  == 8 || $ product_ty pe == 9):  ?>   169                         <?php if($ product_ty pe == 3 ||  $product_ type == 5  || $produc t_type ==  6 || $prod uct_type = = 7 || $pr oduct_type  == 8 || $ product_ty pe == 9):  ?>
170                         <div class ="actions" >   170                         <div class ="actions" >
171                             <?php  if(Mage::g etStoreCon fig("porto _settings/ category/q ty_field",  $code)):? >   171                             <?php  if(Mage::g etStoreCon fig("porto _settings/ category/q ty_field",  $code)):? >
172                                 <? php if($pr oduct->isS aleable()) : ?>   172                                 <? php if($pr oduct->isS aleable()) : ?>
173                                      <?php  i f ( !($pro duct->getT ypeInstanc e(true)->h asOptions( $product)  || $produc t->isGroup ed()) ) :   ?>   173                                      <?php  i f ( !($pro duct->getT ypeInstanc e(true)->h asOptions( $product)  || $produc t->isGroup ed()) ) :   ?>
174                                      <?php if (!Mage::ge tStoreConf ig("ajaxca rt/addtoca rt/enablec ategory",  $code)):?>   174                                      <?php if (!Mage::ge tStoreConf ig("ajaxca rt/addtoca rt/enablec ategory",  $code)):?>
175                                      <form id ="addtocar t_form_<?p hp echo $_ product->g etId()."_" .$rnd_str;  ?>" actio n="<?php e cho $this- >getAddToC artUrl($_p roduct) ?> " method=" post">   175                                      <form id ="addtocar t_form_<?p hp echo $_ product->g etId()."_" .$rnd_str;  ?>" actio n="<?php e cho $this- >getAddToC artUrl($_p roduct) ?> " method=" post">
176                                          <inp ut type="h idden" nam e="form_ke y" value=" <?php echo  Mage::get Singleton( 'core/sess ion')->get FormKey();  ?>" />   176                                          <inp ut type="h idden" nam e="form_ke y" value=" <?php echo  Mage::get Singleton( 'core/sess ion')->get FormKey();  ?>" />
177                                      <?php en dif; ?>   177                                      <?php en dif; ?>
178                                      <div cla ss="qty-fi eld">   178                                      <div cla ss="qty-fi eld">
179                                          <lab el for="qt y"><?php e cho $this- >__('Qty:' ) ?></labe l>   179                                          <lab el for="qt y"><?php e cho $this- >__('Qty:' ) ?></labe l>
180                                          <div  class="qt y-holder">   180                                          <div  class="qt y-holder">
181                                               <input typ e="text" n ame="qty"  id="qty_<? php echo $ _product-> getId(); ? >" maxleng th="12" va lue="<?php  echo $pro duct->getP roductDefa ultQty() *  1 ?>" tit le="<?php  echo $this ->__('Qty' ) ?>" clas s="input-t ext qty" / >   181                                               <input typ e="text" n ame="qty"  id="qty_<? php echo $ _product-> getId(); ? >" maxleng th="12" va lue="<?php  echo $pro duct->getP roductDefa ultQty() *  1 ?>" tit le="<?php  echo $this ->__('Qty' ) ?>" clas s="input-t ext qty" / >
182                                               <div class ="qty-chan ger">   182                                               <div class ="qty-chan ger">
183                                                   <a hre f="javascr ipt:void(0 )" class=" qty_inc">< i class="i con-up-dir "></i></a>   183                                                   <a hre f="javascr ipt:void(0 )" class=" qty_inc">< i class="i con-up-dir "></i></a>
184                                                   <a hre f="javascr ipt:void(0 )" class=" qty_dec">< i class="i con-down-d ir"></i></ a>   184                                                   <a hre f="javascr ipt:void(0 )" class=" qty_dec">< i class="i con-down-d ir"></i></ a>
185                                               </div>   185                                               </div>
186                                          </di v>   186                                          </di v>
187                                      </div>   187                                      </div>
188                                      <?php if (!Mage::ge tStoreConf ig("ajaxca rt/addtoca rt/enablec ategory",  $code)):?>   188                                      <?php if (!Mage::ge tStoreConf ig("ajaxca rt/addtoca rt/enablec ategory",  $code)):?>
189                                      </form>   189                                      </form>
190                                      <?php en dif; ?>   190                                      <?php en dif; ?>
191                                      <?php en dif; ?>   191                                      <?php en dif; ?>
192                                 <? php endif;  ?>   192                                 <? php endif;  ?>
193                             <?php  endif; ?>   193                             <?php  endif; ?>
194                             <?php  if($produc t->isSalea ble()): ?>   194                             <?php  if($produc t->isSalea ble()): ?>
195                                 <? php  if (  !($product ->getTypeI nstance(tr ue)->hasOp tions($pro duct) || $ product->i sGrouped() ) ) :  ?>   195                                 <? php  if (  !($product ->getTypeI nstance(tr ue)->hasOp tions($pro duct) || $ product->i sGrouped() ) ) :  ?>
196                                      <a href= "<?php if( !Mage::get StoreConfi g("ajaxcar t/addtocar t/enableca tegory", $ code) && ! Mage::getS toreConfig ("porto_se ttings/cat egory/qty_ field", $c ode)): ?>< ?php echo  $this->get AddToCartU rl($_produ ct) ?><?ph p else: ?> javascript :void(0)<? php endif;  ?>" class ="addtocar t" title=" <?php echo  $this->__ ('Add to C art') ?>"  <?php if(M age::getSt oreConfig( "ajaxcart/ addtocart/ enablecate gory", $co de)):?>onc lick="setL ocationAja x(this,'<? php echo $ this->getA ddToCartUr l($_produc t) ?>','<? php echo $ _product-> getId()."_ ".$rnd_str ; ?>')"<?p hp elseif( Mage::getS toreConfig ("porto_se ttings/cat egory/qty_ field", $c ode)): ?>o nclick="do cument.get ElementByI d('addtoca rt_form_<? php echo $ _product-> getId(); ? >').submit ()"<?php e ndif; ?>>< i class="i con-cart"> </i><span> &nbsp;<?ph p echo $th is->__('Ad d to Cart' ) ?></span ></a>   196                                      <a href= "<?php if( !Mage::get StoreConfi g("ajaxcar t/addtocar t/enableca tegory", $ code) && ! Mage::getS toreConfig ("porto_se ttings/cat egory/qty_ field", $c ode)): ?>< ?php echo  $this->get AddToCartU rl($_produ ct) ?><?ph p else: ?> javascript :void(0)<? php endif;  ?>" class ="addtocar t" title=" <?php echo  $this->__ ('Add to C art') ?>"  <?php if(M age::getSt oreConfig( "ajaxcart/ addtocart/ enablecate gory", $co de)):?>onc lick="setL ocationAja x(this,'<? php echo $ this->getA ddToCartUr l($_produc t) ?>','<? php echo $ _product-> getId()."_ ".$rnd_str ; ?>')"<?p hp elseif( Mage::getS toreConfig ("porto_se ttings/cat egory/qty_ field", $c ode)): ?>o nclick="do cument.get ElementByI d('addtoca rt_form_<? php echo $ _product-> getId(); ? >').submit ()"<?php e ndif; ?>>< i class="i con-cart"> </i><span> &nbsp;<?ph p echo $th is->__('Ad d to Cart' ) ?></span ></a>
197                                 <? php else :  ?>   197                                 <? php else :  ?>
198                                      <a href= "<?php if( Mage::getS toreConfig ("ajaxcart /addtocart /enablecat egory", $c ode)):?>ja vascript:s howOptions ('<?php ec ho $_produ ct->getId( )?>')<?php  else: ?>< ?php echo  $this->get AddToCartU rl($_produ ct) ?><?ph p endif; ? >" class=" addtocart"  title="<? php echo $ this->__(' Add to Car t') ?>"><i  class="ic on-cart">< /i><span>& nbsp;<?php  echo $thi s->__('Add  to Cart')  ?></span> </a>   198                                      <a href= "<?php if( Mage::getS toreConfig ("ajaxcart /addtocart /enablecat egory", $c ode)):?>ja vascript:s howOptions ('<?php ec ho $_produ ct->getId( )?>')<?php  else: ?>< ?php echo  $this->get AddToCartU rl($_produ ct) ?><?ph p endif; ? >" class=" addtocart"  title="<? php echo $ this->__(' Add to Car t') ?>"><i  class="ic on-cart">< /i><span>& nbsp;<?php  echo $thi s->__('Add  to Cart')  ?></span> </a>
199                                      <a href= '<?php ech o $this->g etUrl('aja xcart/inde x/options' ,array('pr oduct_id'= >$_product ->getId()) );?>' clas s='fancybo x' id='fan cybox<?php  echo $_pr oduct->get Id()?>' st yle='displ ay:none'>O ptions</a>   199                                      <a href= '<?php ech o $this->g etUrl('aja xcart/inde x/options' ,array('pr oduct_id'= >$_product ->getId()) );?>' clas s='fancybo x' id='fan cybox<?php  echo $_pr oduct->get Id()?>' st yle='displ ay:none'>O ptions</a>
200                                 <? php endif; ?>   200                                 <? php endif; ?>
201                             <?php  else: ?>   201                             <?php  else: ?>
202                                 <a  href="jav ascript:vo id(0);" cl ass="addto cart outof stock" tit le="<?php  echo $this ->__('Out  of stock')  ?>"><?php  echo $thi s->__('Out  of stock' ) ?></span ></a>   202                                 <a  href="jav ascript:vo id(0);" cl ass="addto cart outof stock" tit le="<?php  echo $this ->__('Out  of stock')  ?>"><?php  echo $thi s->__('Out  of stock' ) ?></span ></a>
203                             <?php  endif; ?>   203                             <?php  endif; ?>
204                             <?php  if($produc t_type !=  3 && $prod uct_type ! = 5 && $pr oduct_type  != 6): ?>   204                             <?php  if($produc t_type !=  3 && $prod uct_type ! = 5 && $pr oduct_type  != 6): ?>
205                             <?php  if ($this- >helper('w ishlist')- >isAllow() ) : ?>   205                             <?php  if ($this- >helper('w ishlist')- >isAllow() ) : ?>
206                                 <a  href="<?p hp if(Mage ::getStore Config("aj axcart/add tolinks/en ablecatego ry", $code )):?>javas cript:void (0)<?php e lse: ?><?p hp echo $t his->helpe r('wishlis t')->getAd dUrl($_pro duct) ?><? php endif;  ?>" <?php  if(Mage:: getStoreCo nfig("ajax cart/addto links/enab lecategory ", $code)) :?>onclick ="ajaxWish list(this, '<?php ech o $this->h elper('wis hlist')->g etAddUrl($ _product)  ?>','<?php  echo $_pr oduct->get Id()?>');" <?php endi f;?> class ="addtowis hlist" tit le="<?php  echo $this ->__('Add  to Wishlis t') ?>"><i  class="ic on-wishlis t"></i></a >   206                                 <a  href="<?p hp if(Mage ::getStore Config("aj axcart/add tolinks/en ablecatego ry", $code )):?>javas cript:void (0)<?php e lse: ?><?p hp echo $t his->helpe r('wishlis t')->getAd dUrl($_pro duct) ?><? php endif;  ?>" <?php  if(Mage:: getStoreCo nfig("ajax cart/addto links/enab lecategory ", $code)) :?>onclick ="ajaxWish list(this, '<?php ech o $this->h elper('wis hlist')->g etAddUrl($ _product)  ?>','<?php  echo $_pr oduct->get Id()?>');" <?php endi f;?> class ="addtowis hlist" tit le="<?php  echo $this ->__('Add  to Wishlis t') ?>"><i  class="ic on-wishlis t"></i></a >
207                             <?php  endif; ?>   207                             <?php  endif; ?>
208                             <?php  endif; ?>   208                             <?php  endif; ?>
209                             <?php  if(Mage::g etStoreCon fig("porto _settings/ category/c ompare", $ code) && $ _compareUr l=$this->g etAddToCom pareUrl($_ product)):  ?>   209                             <?php  if(Mage::g etStoreCon fig("porto _settings/ category/c ompare", $ code) && $ _compareUr l=$this->g etAddToCom pareUrl($_ product)):  ?>
210                                 <a  href="<?p hp if(Mage ::getStore Config("aj axcart/add tolinks/en ablecatego ry", $code )):?>javas cript:void (0)<?php e lse: ?><?p hp echo $_ compareUrl  ?><?php e ndif; ?>"  <?php if(M age::getSt oreConfig( "ajaxcart/ addtolinks /enablecat egory", $c ode)):?>on click="aja xCompare(t his,'<?php  echo $_co mpareUrl ? >','<?php  echo $_pro duct->getI d()?>');"< ?php endif ; ?> class ="comparel ink" title ="<?php ec ho $this-> __('Add to  Compare')  ?>"><i cl ass="icon- compare">< /i></a>   210                                 <a  href="<?p hp if(Mage ::getStore Config("aj axcart/add tolinks/en ablecatego ry", $code )):?>javas cript:void (0)<?php e lse: ?><?p hp echo $_ compareUrl  ?><?php e ndif; ?>"  <?php if(M age::getSt oreConfig( "ajaxcart/ addtolinks /enablecat egory", $c ode)):?>on click="aja xCompare(t his,'<?php  echo $_co mpareUrl ? >','<?php  echo $_pro duct->getI d()?>');"< ?php endif ; ?> class ="comparel ink" title ="<?php ec ho $this-> __('Add to  Compare')  ?>"><i cl ass="icon- compare">< /i></a>
211                             <?php  endif; ?>   211                             <?php  endif; ?>
212                             <div c lass="clea rer"></div >   212                             <div c lass="clea rer"></div >
213                         </div>   213                         </div>
214                         <?php endi f; ?>   214                         <?php endi f; ?>
215                    </di v>   215                    </di v>
216                    <div  class="de tails-area ">   216                    <div  class="de tails-area ">
217                         <h2 class= "product-n ame"><a hr ef="<?php  echo $_pro duct->getP roductUrl( ) ?>" titl e="<?php e cho $this- >stripTags ($_product ->getName( ), null, t rue) ?>">< ?php echo  $_helper-> productAtt ribute($_p roduct, $_ product->g etName(),  'name') ?> </a></h2>   217                         <h2 class= "product-n ame"><a hr ef="<?php  echo $_pro duct->getP roductUrl( ) ?>" titl e="<?php e cho $this- >stripTags ($_product ->getName( ), null, t rue) ?>">< ?php echo  $_helper-> productAtt ribute($_p roduct, $_ product->g etName(),  'name') ?> </a></h2>
218                         <?php if($ product_ty pe == 3 ||  $product_ type == 5  || $produc t_type ==  6): ?>   218                         <?php if($ product_ty pe == 3 ||  $product_ type == 5  || $produc t_type ==  6): ?>
219                             <?php  if ($this- >helper('w ishlist')- >isAllow() ) : ?>   219                             <?php  if ($this- >helper('w ishlist')- >isAllow() ) : ?>
220                                 <a  href="<?p hp if(Mage ::getStore Config("aj axcart/add tolinks/en ablecatego ry", $code )):?>javas cript:void (0)<?php e lse: ?><?p hp echo $t his->helpe r('wishlis t')->getAd dUrl($_pro duct) ?><? php endif;  ?>" <?php  if(Mage:: getStoreCo nfig("ajax cart/addto links/enab lecategory ", $code)) :?>onclick ="ajaxWish list(this, '<?php ech o $this->h elper('wis hlist')->g etAddUrl($ _product)  ?>','<?php  echo $_pr oduct->get Id()?>');" <?php endi f;?> class ="addtowis hlist" tit le="<?php  echo $this ->__('Add  to Wishlis t') ?>"><i  class="ic on-wishlis t"></i></a >   220                                 <a  href="<?p hp if(Mage ::getStore Config("aj axcart/add tolinks/en ablecatego ry", $code )):?>javas cript:void (0)<?php e lse: ?><?p hp echo $t his->helpe r('wishlis t')->getAd dUrl($_pro duct) ?><? php endif;  ?>" <?php  if(Mage:: getStoreCo nfig("ajax cart/addto links/enab lecategory ", $code)) :?>onclick ="ajaxWish list(this, '<?php ech o $this->h elper('wis hlist')->g etAddUrl($ _product)  ?>','<?php  echo $_pr oduct->get Id()?>');" <?php endi f;?> class ="addtowis hlist" tit le="<?php  echo $this ->__('Add  to Wishlis t') ?>"><i  class="ic on-wishlis t"></i></a >
221                             <?php  endif; ?>   221                             <?php  endif; ?>
222                         <?php endi f; ?>   222                         <?php endi f; ?>
223                         <?php if(M age::getSt oreConfig( "porto_set tings/cate gory/ratin g_star", $ code)):?>   223                         <?php if(M age::getSt oreConfig( "porto_set tings/cate gory/ratin g_star", $ code)):?>
224                         <?php    224                         <?php 
225                         if (Mage:: helper('ca talog')->i sModuleEna bled('Mage _Review')) :   225                         if (Mage:: helper('ca talog')->i sModuleEna bled('Mage _Review')) :
226                         ?>   226                         ?>
227                         <?php    227                         <?php 
228                             $revie w_html = $ this->getR eviewsSumm aryHtml($p roduct, 's hort');   228                             $revie w_html = $ this->getR eviewsSumm aryHtml($p roduct, 's hort');
229                             if($re view_html) {   229                             if($re view_html) {
230                                 ec ho $review _html;   230                                 ec ho $review _html;
231                             }else{   231                             }else{
232                         ?>   232                         ?>
233                             <div c lass="rati ngs">   233                             <div c lass="rati ngs">
234                                 <d iv class=" rating-box ">   234                                 <d iv class=" rating-box ">
235                                      <div cla ss="rating " style="w idth:0"></ div>   235                                      <div cla ss="rating " style="w idth:0"></ div>
236                                 </ div>   236                                 </ div>
237                             </div>   237                             </div>
238                         <?php                                  238                         <?php                               
239                             }   239                             }
240                         ?>   240                         ?>
241                         <?php else : ?>   241                         <?php else : ?>
242                             <div c lass="rati ngs">   242                             <div c lass="rati ngs">
243                                 <d iv class=" rating-box ">   243                                 <d iv class=" rating-box ">
244                                      <div cla ss="rating " style="w idth:0"></ div>   244                                      <div cla ss="rating " style="w idth:0"></ div>
245                                 </ div>   245                                 </ div>
246                             </div>   246                             </div>
247                         <?php endi f; ?>   247                         <?php endi f; ?>
248                         <?php endi f; ?>   248                         <?php endi f; ?>
249                         <?php if(M age::getSt oreConfig( "porto_set tings/cate gory/produ ct_price",  $code)):? >   249                         <?php if(M age::getSt oreConfig( "porto_set tings/cate gory/produ ct_price",  $code)):? >
250                         <?php echo  $this->ge tPriceHtml ($_product , true) ?>   250                         <?php echo  $this->ge tPriceHtml ($_product , true) ?>
251                         <?php endi f; ?>   251                         <?php endi f; ?>
252                         <?php   if($produc t_type   !=   3   &&   $product_t ype   !=   5   &&   $product_t ype   !=   6   &&   $product_t ype   !=   7   &&   $product_t ype   !=   8   &&   $product_t ype   !=   9
):   ?>
  252                         <?php   if($produc t_type   !=   3   &&   $product_t ype   !=   5   &&   $product_t ype   !=   6   &&   $product_t ype   !=   7   &&   $product_t ype   !=   8   &&   $product_t ype   !=   9   &&   $product_t ype   !=   11 ):   ?>
253                         <div class ="actions" >   253                         <div class ="actions" >
254                             <?php  if(Mage::g etStoreCon fig("porto _settings/ category/q ty_field",  $code)):? >   254                             <?php  if(Mage::g etStoreCon fig("porto _settings/ category/q ty_field",  $code)):? >
255                                 <? php if($pr oduct->isS aleable()) : ?>   255                                 <? php if($pr oduct->isS aleable()) : ?>
256                                      <?php  i f ( !($pro duct->getT ypeInstanc e(true)->h asOptions( $product)  || $produc t->isGroup ed()) ) :   ?>   256                                      <?php  i f ( !($pro duct->getT ypeInstanc e(true)->h asOptions( $product)  || $produc t->isGroup ed()) ) :   ?>
257                                      <?php if (!Mage::ge tStoreConf ig("ajaxca rt/addtoca rt/enablec ategory",  $code)):?>   257                                      <?php if (!Mage::ge tStoreConf ig("ajaxca rt/addtoca rt/enablec ategory",  $code)):?>
258                                      <form id ="addtocar t_form_<?p hp echo $_ product->g etId()."_" .$rnd_str;  ?>" actio n="<?php e cho $this- >getAddToC artUrl($_p roduct) ?> " method=" post">   258                                      <form id ="addtocar t_form_<?p hp echo $_ product->g etId()."_" .$rnd_str;  ?>" actio n="<?php e cho $this- >getAddToC artUrl($_p roduct) ?> " method=" post">
259                                          <inp ut type="h idden" nam e="form_ke y" value=" <?php echo  Mage::get Singleton( 'core/sess ion')->get FormKey();  ?>" />   259                                          <inp ut type="h idden" nam e="form_ke y" value=" <?php echo  Mage::get Singleton( 'core/sess ion')->get FormKey();  ?>" />
260                                      <?php en dif; ?>   260                                      <?php en dif; ?>
261                                      <div cla ss="qty-fi eld">   261                                      <div cla ss="qty-fi eld">
262                                          <lab el for="qt y"><?php e cho $this- >__('Qty:' ) ?></labe l>   262                                          <lab el for="qt y"><?php e cho $this- >__('Qty:' ) ?></labe l>
263                                          <div  class="qt y-holder">   263                                          <div  class="qt y-holder">
264                                               <input typ e="text" n ame="qty"  id="qty_<? php echo $ _product-> getId(); ? >" maxleng th="12" va lue="<?php  echo $pro duct->getP roductDefa ultQty() *  1 ?>" tit le="<?php  echo $this ->__('Qty' ) ?>" clas s="input-t ext qty" / >   264                                               <input typ e="text" n ame="qty"  id="qty_<? php echo $ _product-> getId(); ? >" maxleng th="12" va lue="<?php  echo $pro duct->getP roductDefa ultQty() *  1 ?>" tit le="<?php  echo $this ->__('Qty' ) ?>" clas s="input-t ext qty" / >
265                                               <div class ="qty-chan ger">   265                                               <div class ="qty-chan ger">
266                                                   <a hre f="javascr ipt:void(0 )" class=" qty_inc">< i class="i con-up-dir "></i></a>   266                                                   <a hre f="javascr ipt:void(0 )" class=" qty_inc">< i class="i con-up-dir "></i></a>
267                                                   <a hre f="javascr ipt:void(0 )" class=" qty_dec">< i class="i con-down-d ir"></i></ a>   267                                                   <a hre f="javascr ipt:void(0 )" class=" qty_dec">< i class="i con-down-d ir"></i></ a>
268                                               </div>   268                                               </div>
269                                          </di v>   269                                          </di v>
270                                      </div>   270                                      </div>
271                                      <?php if (!Mage::ge tStoreConf ig("ajaxca rt/addtoca rt/enablec ategory",  $code)):?>   271                                      <?php if (!Mage::ge tStoreConf ig("ajaxca rt/addtoca rt/enablec ategory",  $code)):?>
272                                      </form>   272                                      </form>
273                                      <?php en dif; ?>   273                                      <?php en dif; ?>
274                                      <?php en dif; ?>   274                                      <?php en dif; ?>
275                                 <? php endif;  ?>   275                                 <? php endif;  ?>
276                             <?php  endif; ?>   276                             <?php  endif; ?>
277                             <?php  if($produc t_type ==  1 || $prod uct_type = = 2 || $pr oduct_type  == 9): ?>   277                             <?php  if($produc t_type ==  1 || $prod uct_type = = 2 || $pr oduct_type  == 9): ?>
278                             <?php  if ($this- >helper('w ishlist')- >isAllow() ) : ?>   278                             <?php  if ($this- >helper('w ishlist')- >isAllow() ) : ?>
279                                 <a  href="<?p hp if(Mage ::getStore Config("aj axcart/add tolinks/en ablecatego ry", $code )):?>javas cript:void (0)<?php e lse: ?><?p hp echo $t his->helpe r('wishlis t')->getAd dUrl($_pro duct) ?><? php endif;  ?>" <?php  if(Mage:: getStoreCo nfig("ajax cart/addto links/enab lecategory ", $code)) :?>onclick ="ajaxWish list(this, '<?php ech o $this->h elper('wis hlist')->g etAddUrl($ _product)  ?>','<?php  echo $_pr oduct->get Id()?>');" <?php endi f;?> class ="addtowis hlist" tit le="<?php  echo $this ->__('Add  to Wishlis t') ?>"><i  class="ic on-wishlis t"></i></a >   279                                 <a  href="<?p hp if(Mage ::getStore Config("aj axcart/add tolinks/en ablecatego ry", $code )):?>javas cript:void (0)<?php e lse: ?><?p hp echo $t his->helpe r('wishlis t')->getAd dUrl($_pro duct) ?><? php endif;  ?>" <?php  if(Mage:: getStoreCo nfig("ajax cart/addto links/enab lecategory ", $code)) :?>onclick ="ajaxWish list(this, '<?php ech o $this->h elper('wis hlist')->g etAddUrl($ _product)  ?>','<?php  echo $_pr oduct->get Id()?>');" <?php endi f;?> class ="addtowis hlist" tit le="<?php  echo $this ->__('Add  to Wishlis t') ?>"><i  class="ic on-wishlis t"></i></a >
280                             <?php  endif; ?>   280                             <?php  endif; ?>
281                             <?php  endif; ?>   281                             <?php  endif; ?>
282                             <?php  if($produc t->isSalea ble()): ?>   282                             <?php  if($produc t->isSalea ble()): ?>
283                                 <? php  if (  !($product ->getTypeI nstance(tr ue)->hasOp tions($pro duct) || $ product->i sGrouped() ) ) :  ?>   283                                 <? php  if (  !($product ->getTypeI nstance(tr ue)->hasOp tions($pro duct) || $ product->i sGrouped() ) ) :  ?>
284                                      <a href= "<?php if( !Mage::get StoreConfi g("ajaxcar t/addtocar t/enableca tegory", $ code) && ! Mage::getS toreConfig ("porto_se ttings/cat egory/qty_ field", $c ode)): ?>< ?php echo  $this->get AddToCartU rl($_produ ct) ?><?ph p else: ?> javascript :void(0)<? php endif;  ?>" class ="addtocar t" title=" <?php echo  $this->__ ('Add to C art') ?>"  <?php if(M age::getSt oreConfig( "ajaxcart/ addtocart/ enablecate gory", $co de)):?>onc lick="setL ocationAja x(this,'<? php echo $ this->getA ddToCartUr l($_produc t) ?>','<? php echo $ _product-> getId()."_ ".$rnd_str ; ?>')"<?p hp elseif( Mage::getS toreConfig ("porto_se ttings/cat egory/qty_ field", $c ode)): ?>o nclick="do cument.get ElementByI d('addtoca rt_form_<? php echo $ _product-> getId(); ? >').submit ()"<?php e ndif; ?>>< i class="i con-cart"> </i><span> &nbsp;<?ph p echo $th is->__('Ad d to Cart' ) ?></span ></a>   284                                      <a href= "<?php if( !Mage::get StoreConfi g("ajaxcar t/addtocar t/enableca tegory", $ code) && ! Mage::getS toreConfig ("porto_se ttings/cat egory/qty_ field", $c ode)): ?>< ?php echo  $this->get AddToCartU rl($_produ ct) ?><?ph p else: ?> javascript :void(0)<? php endif;  ?>" class ="addtocar t" title=" <?php echo  $this->__ ('Add to C art') ?>"  <?php if(M age::getSt oreConfig( "ajaxcart/ addtocart/ enablecate gory", $co de)):?>onc lick="setL ocationAja x(this,'<? php echo $ this->getA ddToCartUr l($_produc t) ?>','<? php echo $ _product-> getId()."_ ".$rnd_str ; ?>')"<?p hp elseif( Mage::getS toreConfig ("porto_se ttings/cat egory/qty_ field", $c ode)): ?>o nclick="do cument.get ElementByI d('addtoca rt_form_<? php echo $ _product-> getId(); ? >').submit ()"<?php e ndif; ?>>< i class="i con-cart"> </i><span> &nbsp;<?ph p echo $th is->__('Ad d to Cart' ) ?></span ></a>
285                                 <? php else :  ?>   285                                 <? php else :  ?>
286                                      <a href= "<?php if( Mage::getS toreConfig ("ajaxcart /addtocart /enablecat egory", $c ode)):?>ja vascript:s howOptions ('<?php ec ho $_produ ct->getId( )?>')<?php  else: ?>< ?php echo  $this->get AddToCartU rl($_produ ct) ?><?ph p endif; ? >" class=" addtocart"  title="<? php echo $ this->__(' Add to Car t') ?>"><i  class="ic on-cart">< /i><span>& nbsp;<?php  echo $thi s->__('Add  to Cart')  ?></span> </a>   286                                      <a href= "<?php if( Mage::getS toreConfig ("ajaxcart /addtocart /enablecat egory", $c ode)):?>ja vascript:s howOptions ('<?php ec ho $_produ ct->getId( )?>')<?php  else: ?>< ?php echo  $this->get AddToCartU rl($_produ ct) ?><?ph p endif; ? >" class=" addtocart"  title="<? php echo $ this->__(' Add to Car t') ?>"><i  class="ic on-cart">< /i><span>& nbsp;<?php  echo $thi s->__('Add  to Cart')  ?></span> </a>
287                                      <a href= '<?php ech o $this->g etUrl('aja xcart/inde x/options' ,array('pr oduct_id'= >$_product ->getId()) );?>' clas s='fancybo x' id='fan cybox<?php  echo $_pr oduct->get Id()?>' st yle='displ ay:none'>O ptions</a>   287                                      <a href= '<?php ech o $this->g etUrl('aja xcart/inde x/options' ,array('pr oduct_id'= >$_product ->getId()) );?>' clas s='fancybo x' id='fan cybox<?php  echo $_pr oduct->get Id()?>' st yle='displ ay:none'>O ptions</a>
288                                 <? php endif; ?>   288                                 <? php endif; ?>
289                             <?php  else: ?>   289                             <?php  else: ?>
290                                 <a  href="jav ascript:vo id(0);" cl ass="addto cart outof stock" tit le="<?php  echo $this ->__('Out  of stock')  ?>"><?php  echo $thi s->__('Out  of stock' ) ?></span ></a>   290                                 <a  href="jav ascript:vo id(0);" cl ass="addto cart outof stock" tit le="<?php  echo $this ->__('Out  of stock')  ?>"><?php  echo $thi s->__('Out  of stock' ) ?></span ></a>
291                             <?php  endif; ?>   291                             <?php  endif; ?>
292                             <?php  if($produc t_type !=  1 && $prod uct_type ! = 2 && $pr oduct_type  != 9): ?>   292                             <?php  if($produc t_type !=  1 && $prod uct_type ! = 2 && $pr oduct_type  != 9): ?>
293                             <?php  if ($this- >helper('w ishlist')- >isAllow() ) : ?>   293                             <?php  if ($this- >helper('w ishlist')- >isAllow() ) : ?>
294                                 <a  href="<?p hp if(Mage ::getStore Config("aj axcart/add tolinks/en ablecatego ry", $code )):?>javas cript:void (0)<?php e lse: ?><?p hp echo $t his->helpe r('wishlis t')->getAd dUrl($_pro duct) ?><? php endif;  ?>" <?php  if(Mage:: getStoreCo nfig("ajax cart/addto links/enab lecategory ", $code)) :?>onclick ="ajaxWish list(this, '<?php ech o $this->h elper('wis hlist')->g etAddUrl($ _product)  ?>','<?php  echo $_pr oduct->get Id()?>');" <?php endi f;?> class ="addtowis hlist" tit le="<?php  echo $this ->__('Add  to Wishlis t') ?>"><i  class="ic on-wishlis t"></i></a >   294                                 <a  href="<?p hp if(Mage ::getStore Config("aj axcart/add tolinks/en ablecatego ry", $code )):?>javas cript:void (0)<?php e lse: ?><?p hp echo $t his->helpe r('wishlis t')->getAd dUrl($_pro duct) ?><? php endif;  ?>" <?php  if(Mage:: getStoreCo nfig("ajax cart/addto links/enab lecategory ", $code)) :?>onclick ="ajaxWish list(this, '<?php ech o $this->h elper('wis hlist')->g etAddUrl($ _product)  ?>','<?php  echo $_pr oduct->get Id()?>');" <?php endi f;?> class ="addtowis hlist" tit le="<?php  echo $this ->__('Add  to Wishlis t') ?>"><i  class="ic on-wishlis t"></i></a >
295                             <?php  endif; ?>   295                             <?php  endif; ?>
296                             <?php  endif; ?>   296                             <?php  endif; ?>
297                             <?php  if(Mage::g etStoreCon fig("porto _settings/ category/c ompare", $ code) && $ _compareUr l=$this->g etAddToCom pareUrl($_ product)):  ?>   297                             <?php  if(Mage::g etStoreCon fig("porto _settings/ category/c ompare", $ code) && $ _compareUr l=$this->g etAddToCom pareUrl($_ product)):  ?>
298                                 <a  href="<?p hp if(Mage ::getStore Config("aj axcart/add tolinks/en ablecatego ry", $code )):?>javas cript:void (0)<?php e lse: ?><?p hp echo $_ compareUrl  ?><?php e ndif; ?>"  <?php if(M age::getSt oreConfig( "ajaxcart/ addtolinks /enablecat egory", $c ode)):?>on click="aja xCompare(t his,'<?php  echo $_co mpareUrl ? >','<?php  echo $_pro duct->getI d()?>');"< ?php endif ; ?> class ="comparel ink" title ="<?php ec ho $this-> __('Add to  Compare')  ?>"><i cl ass="icon- compare">< /i></a>   298                                 <a  href="<?p hp if(Mage ::getStore Config("aj axcart/add tolinks/en ablecatego ry", $code )):?>javas cript:void (0)<?php e lse: ?><?p hp echo $_ compareUrl  ?><?php e ndif; ?>"  <?php if(M age::getSt oreConfig( "ajaxcart/ addtolinks /enablecat egory", $c ode)):?>on click="aja xCompare(t his,'<?php  echo $_co mpareUrl ? >','<?php  echo $_pro duct->getI d()?>');"< ?php endif ; ?> class ="comparel ink" title ="<?php ec ho $this-> __('Add to  Compare')  ?>"><i cl ass="icon- compare">< /i></a>
299                             <?php  endif; ?>   299                             <?php  endif; ?>
300                             <div c lass="clea rer"></div >   300                             <div c lass="clea rer"></div >
301                         </div>   301                         </div>
302                         <?php endi f; ?>   302                         <?php endi f; ?>
303                    </di v>   303                    </di v>
304                </div></ li>   304                </div></ li>
305           <? php endfor each; ?>   305           <? php endfor each; ?>
306           </ ul>   306           </ ul>
307           <s cript type ="text/jav ascript">   307           <s cript type ="text/jav ascript">
308                jQuery(' .products- grid li:nt h-child(2n )').addCla ss('nth-ch ild-2n');   308                jQuery(' .products- grid li:nt h-child(2n )').addCla ss('nth-ch ild-2n');
309                jQuery(' .products- grid li:nt h-child(2n +1)').addC lass('nth- child-2np1 ');   309                jQuery(' .products- grid li:nt h-child(2n +1)').addC lass('nth- child-2np1 ');
310                jQuery(' .products- grid li:nt h-child(3n )').addCla ss('nth-ch ild-3n');   310                jQuery(' .products- grid li:nt h-child(3n )').addCla ss('nth-ch ild-3n');
311                jQuery(' .products- grid li:nt h-child(3n +1)').addC lass('nth- child-3np1 ');   311                jQuery(' .products- grid li:nt h-child(3n +1)').addC lass('nth- child-3np1 ');
312                jQuery(' .products- grid li:nt h-child(4n )').addCla ss('nth-ch ild-4n');   312                jQuery(' .products- grid li:nt h-child(4n )').addCla ss('nth-ch ild-4n');
313                jQuery(' .products- grid li:nt h-child(4n +1)').addC lass('nth- child-4np1 ');   313                jQuery(' .products- grid li:nt h-child(4n +1)').addC lass('nth- child-4np1 ');
314                jQuery(' .products- grid li:nt h-child(5n )').addCla ss('nth-ch ild-5n');   314                jQuery(' .products- grid li:nt h-child(5n )').addCla ss('nth-ch ild-5n');
315                jQuery(' .products- grid li:nt h-child(5n +1)').addC lass('nth- child-5np1 ');   315                jQuery(' .products- grid li:nt h-child(5n +1)').addC lass('nth- child-5np1 ');
316                jQuery(' .products- grid li:nt h-child(6n )').addCla ss('nth-ch ild-6n');   316                jQuery(' .products- grid li:nt h-child(6n )').addCla ss('nth-ch ild-6n');
317                jQuery(' .products- grid li:nt h-child(6n +1)').addC lass('nth- child-6np1 ');   317                jQuery(' .products- grid li:nt h-child(6n +1)').addC lass('nth- child-6np1 ');
318                jQuery(' .products- grid li:nt h-child(7n )').addCla ss('nth-ch ild-7n');   318                jQuery(' .products- grid li:nt h-child(7n )').addCla ss('nth-ch ild-7n');
319                jQuery(' .products- grid li:nt h-child(7n +1)').addC lass('nth- child-7np1 ');   319                jQuery(' .products- grid li:nt h-child(7n +1)').addC lass('nth- child-7np1 ');
320                jQuery(' .products- grid li:nt h-child(8n )').addCla ss('nth-ch ild-8n');   320                jQuery(' .products- grid li:nt h-child(8n )').addCla ss('nth-ch ild-8n');
321                jQuery(' .products- grid li:nt h-child(8n +1)').addC lass('nth- child-8np1 ');   321                jQuery(' .products- grid li:nt h-child(8n +1)').addC lass('nth- child-8np1 ');
322           </ script>   322           </ script>
323   </div>   323   </div>
324   <?php endi f; ?>   324   <?php endi f; ?>